package com.example.mapper;

import com.example.pojo.OmDeviceofflinerecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface OmDeviceOfflineRecordMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(OmDeviceofflinerecord record);

    int insertSelective(OmDeviceofflinerecord record);

    OmDeviceofflinerecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OmDeviceofflinerecord record);

    int updateByPrimaryKey(OmDeviceofflinerecord record);

    int updateOnlineTimeByDbId(@Param("onlineTime") Date onlineTime, @Param("dbId") Integer dbId, @Param("modelId") Integer modelId);

    OmDeviceofflinerecord isLogExist(@Param("dbId") Integer dbId, @Param("modelId") Integer modelId);
}